#include <iostream>
#include <ostream>
#include <stdio.h>
#include "Segment.cpp"

using namespace std;

int main()
{
  Segment X;
  int a,b,c,d;
  std::cout<<"Introduceti coordonata X a primului punct : ";std::cin>>a;
  std::cout<<"Introduceti coordonata Y a primului punct : ";std::cin>>b;
  std::cout<<endl<<"Introduceti coordonata X a celui de-al doilea punct : ";std::cin>>c;
  std::cout<<"Introduceti coordonata Y a celui de-al doilea punct : ";std::cin>>d;
  X.setPunctA(a,b);
  X.setPunctB(c,d);
  std::cout<<"\n\nPrimul punct al segmentului citit are coordonatele ("<<X.a.getX()<<","<<X.a.getY()<<"), iar al doilea are coordonatele ("<<X.b.getX()<<","<<X.b.getY()<<").";
  std::cout<<"\nPanta segmentului este : "<<X.getPanta()<<endl;
  return 0;
}
